package org.app.test.ms.meicaiwang.Thr;

public class T extends Thread {
	public T() {
		this.setName("Thread t");
		this.printName();
	}

	public void run() {
		this.printName();
	}

	private void printName() {
		String name = Thread.currentThread().getName();
		System.out.println(name);
	}
	public static void main(String[] args) {
		Thread.currentThread().setName("Thread main");
		T t = new T();
		t.start();
	}
	
	
	
}
